<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>边框图片</title>
		<style type="text/css">
			.borderImage{
				/* 居中 */
				position: absolute;
				left: 0;
				right: 0;
				top: 0;
				bottom: 0;
				margin: auto;
				
				width: 200px;
				height: 200px;
				border: 50px solid;
				border-image-source: url(img/border-stars.png);
				border-image-slice: 33.3333%;
				border-image-repeat: round;
				border-image-width:20px;
				border-image-outset: 10px;
			}
		</style>
	</head>
	<body>
		<div class="borderImage"></div>
	</body>
</html>
